package city.spring.modules.medicine.service;

import city.spring.modules.medicine.entity.MedicinewarehousingMedicineExtEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * Service：药品入库与货架关联
 *
 * @author 谢金婷
 * @date 2020-07-20 02:23:26
 */
public interface MedicinewarehousingMedicineExtService extends IService<MedicinewarehousingMedicineExtEntity> {
    String CACHE_NAME = "medicinewarehousing_shelf_ext";

    /**
     * 业务处理：保存一个 <strong>药品入库与货架关联</strong>
     *
     * @param entity 药品入库与货架关联
     */
    void saveMedicinewarehousingShelfExt(@PathVariable Integer warehousingId, MedicinewarehousingMedicineExtEntity entity);

    /**
     * 业务处理：修改一个 <strong>药品入库与货架关联</strong>
     *
     * @param entity 药品入库与货架关联
     */
    void updateMedicinewarehousingShelfExt(MedicinewarehousingMedicineExtEntity entity);

    /**
     * 业务处理：删除一个 <strong>药品入库与货架关联</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteMedicinewarehousingShelfExt(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>药品入库与货架关联</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteMedicinewarehousingShelfExt(List<String> primaryKeys);
}